package org.wit.ecommerce.error;

import java.io.Serializable;
import java.sql.SQLException;

import org.springframework.dao.DataAccessException;

public class SQLExceptionTranslator implements org.springframework.jdbc.support.SQLExceptionTranslator,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 573451098784675084L;

	@Override
	public DataAccessException translate(String arg0, String arg1,
			SQLException e) {
		e.printStackTrace();
		
		DataAccessException dae=new SerializableDataAccessException("System data access error!");
		return dae;
	}

}
